﻿namespace PokerGame
{
    /// <summary>
    /// 封装网络消息
    /// </summary>
    public class SocketMessage
    {
        /// <summary>
        /// 操作码
        /// </summary>
        public int OpCode { get; set; }
        /// <summary>
        /// 子操作
        /// </summary>
        public int SubCode { get; set; }
        /// <summary>
        /// 参数
        /// </summary>
        public object Value { get; set; }

        public SocketMessage() { }

        public SocketMessage(int opCode, int subCode, object value)
        {
            OpCode = opCode;
            SubCode = subCode;
            Value = value;
        }

        public void Change(int opCode, int subCode, object value)
        {
            OpCode = opCode;
            SubCode = subCode;
            Value = value;
        }

    }
}
